const { Switch } = require("../lib/types");

module.exports = {
    name: "ngx_http_v2_module",
    map: {
        http2_body_preread_size: [String, "64k", ["http", "server"]],
        http2_chunk_size: [String, "8k", ["http", "server", "location"]],
        http2_idle_timeout: [String, "3m", ["http", "server"]],
        http2_max_concurrent_pushes: [Number, 10, ["http", "server"]],
        http2_max_concurrent_streams: [Number, 128, ["http", "server"]],
        http2_max_field_size: [String, "4k", ["http", "server"]],
        http2_max_header_size: [String, "16k", ["http", "server"]],
        http2_max_requests: [Number, 1000, ["http", "server"]],
        http2_push: [[Switch, String], false, ["http", "server", "location"]],
        http2_push_preload: [Switch, false, ["http", "server", "location"]],
        http2_recv_buffer_size: [String, "256k", "http"],
        http2_recv_timeout: [String, "30s", ["http", "server"]]
    }
};